package com.guoyw.seata.dubbo.account.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.guoyw.seata.dubbo.account.entity.TAccount;
import org.apache.ibatis.annotations.Param;

/**
 * author: guoyw
 * create: 2020-09-19 16:16
 **/

public interface TAccountMapper extends BaseMapper<TAccount>{
  
  /**
   * 减少账户余额
   * @param userId
   * @param amount
   * @return
   */
  int decreaseAccount(@Param("userId") String userId, @Param("amount") Double amount);
  
}
